#pragma once

#include"../net/campus_whole_server.h"

const std::string SIGNAL_TYPE_LIVE_CHAT = "live_chat";
const std::string SIGNAL_TYPE_RESP_LIVE_CHAT = "resp_live_chat";

const std::string SIGNAL_TYPE_LIVE_JOIN = "live_join";
const std::string SIGNAL_TYPE_RESP_LIVE_JOIN = "resp_live_join";

const std::string SIGNAL_TYPE_LIVE_LEAVE = "live_leave";
const std::string SIGNAL_TYPE_RESP_LIVE_LEAVE = "resp_live_leave";

enum class CampusLiveRet {
	//服务端回复直播聊天
	LIVE_CHAT_RET_SUCCESS,
	LIVE_CHAT_RET_FAIL,

	//服务端回复直播加入
	LIVE_JOIN_RET_SUCCESS,
	LIVE_JOIN_RET_FAIL,

	//服务端回复直播离开
	LIVE_LEAVE_RET_SUCCESS,
	LIVE_LEAVE_RET_FAIL
};

struct CampusLiveInfo: public CampusSqlInfo
{
	std::string uid;
	std::string live_name;
	int chat_serial;
    virtual void dummpy_func(){}
};

struct CampusLiveInfoObserver
{
	virtual void handleLiveJoin(websocketpp::connection_hdl hdl,json const JMsg) {};
	virtual void handleLiveLeave(websocketpp::connection_hdl hdl) {};
    virtual void handleLiveChat(websocketpp::connection_hdl hdl,json const JMsg) {};
};



